bitkeeper revision 1.1159.45.7 (4125abbbALjz7ttvo9UYMDVzVkYmFA)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Fri, 20 Aug 2004 07:43:55 +0000 (07:43 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Fri, 20 Aug 2004 07:43:55 +0000 (07:43 +0000)
misc cleanups

tools/check/chk
xen/arch/x86/shadow.c

index 632da544cbaa220a53c7997612c9f78deb853611..16de110bc1719a09454cb84a965f700679eaa3ea 100755 (executable)
@@ -12,6 +12,8 @@ function usage {
     exit 1
 }
 
+export PATH=${PATH}:/sbin:/usr/sbin
+
 case $1 in
     build)
         check="CHECK-BUILD"
@@ -67,4 +69,4 @@ if [ "$failed" == "1" ] ; then
 else
     echo "OK" >> ${info}
     exit 0
-fi
\ No newline at end of file
+fi
index 06445943ab24c7ce1d893ecc62b0c6c994b96224..e1fac065d07a49bead6f310901ae00a4991b54a5 100644 (file)
@@ -440,13 +440,10 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc)
     unsigned int cmd = sc->op;
     int rc = 0;
 
-       if (d == current)
-               printk("Attempt to control your _own_ shadow tables. I hope you know what you're doing!\n");
+    domain_pause(d);
+    synchronise_pagetables(~0UL);
 
-       domain_pause(d);
-       synchronise_pagetables(d->processor);
-
-       spin_lock(&d->mm.shadow_lock);
+    spin_lock(&d->mm.shadow_lock);
 
     if ( cmd == DOM0_SHADOW_CONTROL_OP_OFF )
     {
@@ -475,7 +472,7 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc)
 
     spin_unlock(&d->mm.shadow_lock);
 
-       domain_unpause(d);
+    domain_unpause(d);
 
     return rc;
 }